//
//  SPOrderInfoView.m
//  panzer
//
//  Created by 还带大道 on 2018/10/22.
//  Copyright © 2018年 还带大道. All rights reserved.
//

#import "SPOrderInfoView.h"
#import "SPOrderListModel.h"
#import "NSDate+Helen.h"

@interface SPOrderInfoView()
@property (weak, nonatomic) IBOutlet UILabel *order_num;
@property (weak, nonatomic) IBOutlet UILabel *time;
@property (weak, nonatomic) IBOutlet UILabel *pay_type;
@property (weak, nonatomic) IBOutlet UILabel *pay_time;
@property (weak, nonatomic) IBOutlet UILabel *total;

@end

@implementation SPOrderInfoView

- (void)awakeFromNib
{
    [super awakeFromNib];
}

- (void)setModel:(SPOrderListModel *)model
{
    _model = model;
    _order_num.text = model.ordersn;
    _time.text = [NSDate dateFormatterYMDHMWithTimeStamp:model.createtime];
    _pay_type.text = model.pay_type_cn;
    _pay_time.text = [NSDate dateFormatterYMDHMWithTimeStamp:model.paytime];
    _total.text = [NSString stringWithFormat:@"￥%@",model.price];
    
}
@end
